import request from '@/utils/request'

// 查询sku月度销售量列表
export function selectInvChange(query) {
  return request({
    url: '/sale/BiSkuSaleMonthly/selectInvChange',
    method: 'get',
    params: query
  })
}
export function selectSkuMonthlyList(query) {
  return request({
    url: '/sale/BiSkuSaleMonthly/selectSkuMonthlyList',
    method: 'get',
    params: query
  })
}
// 查询sku月度销售量列表
export function synData(query) {
  return request({
    url: '/sale/BiSkuSaleMonthly/synData',
    method: 'get',
    params: query
  })
}
// 查询sku月度销售量列表
export function selectSkuMonthly(query) {
  return request({
    url: '/sale/BiSkuSaleMonthly/selectSkuMonthly',
    method: 'get',
    params: query
  })
}
// 查询sku月度销售量列表
export function selectPurInvMonitor(query) {
  return request({
    url: '/sale/BiSkuSaleMonthly/selectPurInvMonitor',
    // url: '/sale/BiPurInvMonitor/selectPurInvMonitor',
    
    method: 'get',
    params: query
  })
}
export function listBiSkuSaleMonthly(query) {
  return request({
    url: '/sale/BiSkuSaleMonthly/list',
    method: 'get',
    params: query
  })
}
// 查询sku月度销售量详细
export function getBiSkuSaleMonthly(id) {
  return request({
    url: '/sale/BiSkuSaleMonthly/' + id,
    method: 'get'
  })
}

// 新增sku月度销售量
export function addBiSkuSaleMonthly(data) {
  return request({
    url: '/sale/BiSkuSaleMonthly',
    method: 'post',
    data: data
  })
}

// 修改sku月度销售量
export function updateBiSkuSaleMonthly(data) {
  return request({
    url: '/sale/BiSkuSaleMonthly',
    method: 'put',
    data: data
  })
}

// 删除sku月度销售量
export function delBiSkuSaleMonthly(id) {
  return request({
    url: '/sale/BiSkuSaleMonthly/' + id,
    method: 'delete'
  })
}
